<!DOCTYPE html>
<html>
  <head>
    <title><%= data.title %></title>
    <link rel='stylesheet' href='/css/style.css' />
  </head>
  <body>
      <form id="info" action="/store" method="post" class="basic-grey">
          <h1><%= data.title %></h1>

          <% if (Object.keys(data.list).length != 0) { %>
          <ul>
              <% for (let i in data.list) { %>
              <li class="item-title"> <%= i %> </li>
              <li> <%= data.list[i] %> </li>
              <% } %>
          </ul>
          <% } %>

          <% if (Object.keys(data.list).length == 0) { %>
          <label>
              <h3> You didn't paste anything within 20 minutes </h3>
            </label>

          <% } %>
    </form>
  </body>
</html>
